home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / source / contrib / misc / cases.sty < prev    next >
LaTeX Document  |  1995-03-10  |  7.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert DirectMusic Style (music/directMusicStyle) ext Unsupported
1% dexvert Microsoft Word Style Sheet (other/microsoftWordStyleSheet) ext Unsupported
1% dexvert KORG File (other/korgFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX 2e document text default
98% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 20 43 20 41 20 53 | 20 45 20 53 20 2e 20 53 |% C A S| E S . S|
|00000010| 20 54 20 59 20 20 20 20 | 20 20 20 20 20 20 20 20 | T Y | |
|00000020| 20 76 65 72 20 32 2e 20 | 20 20 20 4a 75 6e 65 20 | ver 2. | June |
|00000030| 31 39 39 34 0a 25 0a 25 | 20 20 43 6f 70 79 72 69 |1994.%.%| Copyri|
|00000040| 67 68 74 20 28 43 29 20 | 31 39 39 33 2c 31 39 39 |ght (C) |1993,199|
|00000050| 34 20 62 79 20 44 6f 6e | 61 6c 64 20 41 72 73 65 |4 by Don|ald Arse|
|00000060| 6e 65 61 75 0a 25 20 20 | 54 68 65 73 65 20 6d 61 |neau.% |These ma|
|00000070| 63 72 6f 73 20 6d 61 79 | 20 62 65 20 66 72 65 65 |cros may| be free|
|00000080| 6c 79 20 74 72 61 6e 73 | 6d 69 74 74 65 64 2c 20 |ly trans|mitted, |
|00000090| 72 65 70 72 6f 64 75 63 | 65 64 2c 20 6f 72 20 6d |reproduc|ed, or m|
|000000a0| 6f 64 69 66 69 65 64 20 | 0a 25 20 20 70 72 6f 76 |odified |.% prov|
|000000b0| 69 64 65 64 20 74 68 61 | 74 20 74 68 69 73 20 6e |ided tha|t this n|
|000000c0| 6f 74 69 63 65 20 69 73 | 20 6c 65 66 74 20 69 6e |otice is| left in|
|000000d0| 74 61 63 74 2e 20 20 53 | 75 62 2d 65 71 75 61 74 |tact. S|ub-equat|
|000000e0| 69 6f 6e 20 6e 75 6d 62 | 65 72 69 6e 67 0a 25 20 |ion numb|ering.% |
|000000f0| 20 69 73 20 62 61 73 65 | 64 20 6f 6e 20 73 75 62 | is base|d on sub|
|00000100| 65 71 6e 2e 73 74 79 20 | 62 79 20 53 74 65 70 68 |eqn.sty |by Steph|
|00000110| 65 6e 20 47 69 6c 64 65 | 61 3b 20 6d 6f 73 74 20 |en Gilde|a; most |
|00000120| 6f 66 20 74 68 65 20 72 | 65 73 74 20 69 73 20 62 |of the r|est is b|
|00000130| 61 73 65 64 0a 25 20 20 | 6f 6e 20 4c 61 54 65 58 |ased.% |on LaTeX|
|00000140| 27 73 20 5c 65 71 6e 61 | 72 72 61 79 20 62 79 20 |'s \eqna|rray by |
|00000150| 4c 65 73 6c 69 65 20 4c | 61 6d 70 6f 72 74 20 61 |Leslie L|amport a|
|00000160| 6e 64 20 74 68 65 20 4c | 61 54 65 58 33 20 74 65 |nd the L|aTeX3 te|
|00000170| 61 6d 2e 0a 25 0a 25 20 | 20 4c 61 54 65 58 20 65 |am..%.% | LaTeX e|
|00000180| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 7b 6e 75 6d 63 |nvironme|nt {numc|
|00000190| 61 73 65 73 7d 20 74 6f | 20 70 72 6f 64 75 63 65 |ases} to| produce|
|000001a0| 20 6d 75 6c 74 69 2d 63 | 61 73 65 20 65 71 75 61 | multi-c|ase equa|
|000001b0| 74 69 6f 6e 73 20 77 69 | 74 68 0a 25 20 20 61 20 |tions wi|th.% a |
|000001c0| 73 65 70 61 72 61 74 65 | 20 65 71 75 61 74 69 6f |separate| equatio|
|000001d0| 6e 20 6e 75 6d 62 65 72 | 20 66 6f 72 20 65 61 63 |n number| for eac|
|000001e0| 68 20 63 61 73 65 2e 20 | 20 41 6c 73 6f 2c 20 7b |h case. | Also, {|
|000001f0| 73 75 62 6e 75 6d 63 61 | 73 65 73 7d 0a 25 20 20 |subnumca|ses}.% |
|00000200| 6e 75 6d 62 65 72 73 20 | 65 61 63 68 20 63 61 73 |numbers |each cas|
|00000210| 65 20 77 69 74 68 20 74 | 68 65 20 6f 76 65 72 61 |e with t|he overa|
|00000220| 6c 6c 20 65 71 75 61 74 | 69 6f 6e 20 6e 75 6d 62 |ll equat|ion numb|
|00000230| 65 72 20 70 6c 75 73 20 | 61 20 6c 65 74 74 65 72 |er plus |a letter|
|00000240| 20 0a 25 20 20 5b 38 61 | 2c 20 38 62 2c 20 65 74 | .% [8a|, 8b, et|
|00000250| 63 2e 5d 20 20 20 54 68 | 65 20 73 79 6e 74 61 78 |c.] Th|e syntax|
|00000260| 20 69 73 0a 25 0a 25 20 | 20 5c 62 65 67 69 6e 7b | is.%.% | \begin{|
|00000270| 6e 75 6d 63 61 73 65 73 | 7d 7b 6c 65 66 74 5f 73 |numcases|}{left_s|
|00000280| 69 64 65 7d 0a 25 20 20 | 63 61 73 65 5f 31 20 26 |ide}.% |case_1 &|
|00000290| 20 65 78 70 6c 61 6e 61 | 74 69 6f 6e 5f 31 20 5c | explana|tion_1 \|
|000002a0| 5c 0a 25 20 20 63 61 73 | 65 5f 32 20 26 20 65 78 |\.% cas|e_2 & ex|
|000002b0| 70 6c 61 6e 61 74 69 6f | 6e 5f 32 20 5c 5c 0a 25 |planatio|n_2 \\.%|
|000002c0| 20 20 2e 2e 2e 0a 25 20 | 20 63 61 73 65 5f 6e 20 | ....% | case_n |
|000002d0| 26 20 65 78 70 6c 61 6e | 61 74 69 6f 6e 5f 6e 0a |& explan|ation_n.|
|000002e0| 25 20 20 5c 65 6e 64 7b | 6e 75 6d 63 61 73 65 73 |% \end{|numcases|
|000002f0| 7d 0a 25 0a 25 20 0a 25 | 20 20 45 61 63 68 20 63 |}.%.% .%| Each c|
|00000300| 61 73 65 20 69 73 20 61 | 20 6d 61 74 68 20 66 6f |ase is a| math fo|
|00000310| 72 6d 75 6c 61 2c 20 61 | 6e 64 20 65 61 63 68 20 |rmula, a|nd each |
|00000320| 65 78 70 6c 61 6e 61 74 | 69 6f 6e 20 69 73 20 61 |explanat|ion is a|
|00000330| 20 70 69 65 63 65 20 6f | 66 20 6c 72 20 6d 6f 64 | piece o|f lr mod|
|00000340| 65 0a 25 20 20 74 65 78 | 74 20 28 77 68 69 63 68 |e.% tex|t (which|
|00000350| 20 6d 61 79 20 63 6f 6e | 74 61 69 6e 20 6d 61 74 | may con|tain mat|
|00000360| 68 20 6d 6f 64 65 20 69 | 6e 20 24 2e 2e 2e 24 29 |h mode i|n $...$)|
|00000370| 2e 20 20 54 68 65 20 65 | 78 70 6c 61 6e 61 74 69 |. The e|xplanati|
|00000380| 6f 6e 73 20 61 72 65 0a | 25 20 20 6f 70 74 69 6f |ons are.|% optio|
|00000390| 6e 61 6c 2e 20 20 45 71 | 75 61 74 69 6f 6e 20 6e |nal. Eq|uation n|
|000003a0| 75 6d 62 65 72 73 20 61 | 72 65 20 69 6e 73 65 72 |umbers a|re inser|
|000003b0| 74 65 64 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ted auto|maticall|
|000003c0| 79 2c 20 6a 75 73 74 20 | 61 73 20 66 6f 72 20 74 |y, just |as for t|
|000003d0| 68 65 0a 25 20 20 65 71 | 6e 61 72 72 61 79 20 65 |he.% eq|narray e|
|000003e0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2e 20 20 49 6e 20 |nvironme|nt. In |
|000003f0| 70 61 72 74 69 63 75 6c | 61 72 2c 20 74 68 65 20 |particul|ar, the |
|00000400| 5c 6e 6f 6e 75 6d 62 65 | 72 20 63 6f 6d 6d 61 6e |\nonumbe|r comman|
|00000410| 64 20 73 75 70 70 72 65 | 73 73 65 73 0a 25 20 20 |d suppre|sses.% |
|00000420| 61 6e 20 65 71 75 61 74 | 69 6f 6e 20 6e 75 6d 62 |an equat|ion numb|
|00000430| 65 72 20 61 6e 64 20 74 | 68 65 20 5c 6c 61 62 65 |er and t|he \labe|
|00000440| 6c 20 63 6f 6d 6d 61 6e | 64 20 61 6c 6c 6f 77 73 |l comman|d allows|
|00000450| 20 72 65 66 65 72 65 6e | 63 65 20 74 6f 20 61 0a | referen|ce to a.|
|00000460| 25 20 20 70 61 72 74 69 | 63 75 6c 61 72 20 63 61 |% parti|cular ca|
|00000470| 73 65 2e 20 20 49 6e 20 | 61 20 73 75 62 6e 75 6d |se. In |a subnum|
|00000480| 63 61 73 65 73 20 65 6e | 76 69 72 6f 6e 6d 65 6e |cases en|vironmen|
|00000490| 74 2c 20 61 20 5c 6c 61 | 62 65 6c 20 69 6e 20 74 |t, a \la|bel in t|
|000004a0| 68 65 0a 25 20 20 6c 65 | 66 74 5f 73 69 64 65 20 |he.% le|ft_side |
|000004b0| 6f 66 20 74 68 65 20 65 | 71 75 61 74 69 6f 6e 20 |of the e|quation |
|000004c0| 67 69 76 65 73 20 74 68 | 65 20 6f 76 65 72 61 6c |gives th|e overal|
|000004d0| 6c 20 65 71 75 61 74 69 | 6f 6e 20 6e 75 6d 62 65 |l equati|on numbe|
|000004e0| 72 2c 20 77 69 74 68 6f | 75 74 0a 25 20 20 61 6e |r, witho|ut.% an|
|000004f0| 79 20 6c 65 74 74 65 72 | 2e 20 0a 25 0a 25 20 20 |y letter|. .%.% |
|00000500| 54 6f 20 75 73 65 20 74 | 68 69 73 20 70 61 63 6b |To use t|his pack|
|00000510| 61 67 65 2c 20 64 65 63 | 6c 61 72 65 20 22 5c 64 |age, dec|lare "\d|
|00000520| 6f 63 75 6d 65 6e 74 73 | 74 79 6c 65 20 5b 2e 2e |ocuments|tyle [..|
|00000530| 2e 63 61 73 65 73 2e 2e | 2e 5d 7b 2e 2e 2e 7d 22 |.cases..|.]{...}"|
|00000540| 20 20 6f 72 0a 25 20 20 | 69 6e 63 6c 75 64 65 20 | or.% |include |
|00000550| 20 22 5c 75 73 65 70 61 | 63 6b 61 67 65 7b 63 61 | "\usepa|ckage{ca|
|00000560| 73 65 73 7d 22 20 20 61 | 66 74 65 72 20 5c 64 6f |ses}" a|fter \do|
|00000570| 63 75 6d 65 6e 74 63 6c | 61 73 73 2e 20 20 59 6f |cumentcl|ass. Yo|
|00000580| 75 20 6d 61 79 20 61 6c | 73 6f 0a 25 20 20 73 70 |u may al|so.% sp|
|00000590| 65 63 69 66 79 20 20 22 | 5c 75 73 65 70 61 63 6b |ecify "|\usepack|
|000005a0| 61 67 65 5b 73 75 62 6e | 75 6d 5d 7b 63 61 73 65 |age[subn|um]{case|
|000005b0| 73 7d 22 20 20 74 6f 20 | 66 6f 72 63 65 20 2a 61 |s}" to |force *a|
|000005c0| 6c 6c 2a 20 6e 75 6d 63 | 61 73 65 73 20 0a 25 20 |ll* numc|ases .% |
|000005d0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 73 20 74 6f | environ|ments to|
|000005e0| 20 62 65 20 74 72 65 61 | 74 65 64 20 61 73 20 73 | be trea|ted as s|
|000005f0| 75 62 6e 75 6d 63 61 73 | 65 73 2e 0a 25 0a 25 20 |ubnumcas|es..%.% |
|00000600| 2d 20 2d 20 2d 20 2d 20 | 2d 20 20 20 0a 25 20 20 |- - - - |- .% |
|00000610| 41 20 73 69 6d 70 6c 65 | 20 65 78 61 6d 70 6c 65 |A simple| example|
|00000620| 20 69 73 3a 0a 25 20 20 | 20 20 5c 62 65 67 69 6e | is:.% | \begin|
|00000630| 7b 6e 75 6d 63 61 73 65 | 73 7d 7b 7c 78 7c 3d 7d |{numcase|s}{|x|=}|
|00000640| 0a 25 20 20 20 20 78 2c | 20 26 20 66 6f 72 20 24 |.% x,| & for $|
|00000650| 78 20 5c 67 65 71 20 30 | 24 5c 5c 0a 25 20 20 20 |x \geq 0|$\\.% |
|00000660| 20 2d 78 2c 20 26 20 66 | 6f 72 20 24 78 20 3c 20 | -x, & f|or $x < |
|00000670| 30 24 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6e 75 6d |0$.% |\end{num|
|00000680| 63 61 73 65 73 7d 0a 25 | 0a 25 20 20 47 69 76 69 |cases}.%|.% Givi|
|00000690| 6e 67 3a 0a 25 20 20 20 | 20 20 20 20 20 20 20 20 |ng:.% | |
|000006a0| 20 20 20 20 20 20 20 20 | 20 2f 20 78 20 20 20 66 | | / x f|
|000006b0| 6f 72 20 78 20 3e 20 30 | 20 20 20 20 20 20 20 20 |or x > 0| |
|000006c0| 20 20 20 20 20 20 28 31 | 29 0a 25 20 20 20 20 20 | (1|).% |
|000006d0| 20 20 20 20 20 20 20 20 | 7c 78 7c 20 3d 20 3c 20 | ||x| = < |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 20 2d 0a 25 20 20 | | -.% |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000700| 20 20 5c 20 2d 78 20 20 | 66 6f 72 20 78 20 3c 20 | \ -x |for x < |
|00000710| 30 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 |0 | (|
|00000720| 32 29 0a 25 20 0a 25 20 | 2d 20 2d 20 2d 20 2d 20 |2).% .% |- - - - |
|00000730| 2d 20 20 20 0a 25 20 41 | 6e 6f 74 68 65 72 20 65 |- .% A|nother e|
|00000740| 78 61 6d 70 6c 65 20 69 | 73 20 74 61 6b 69 6e 67 |xample i|s taking|
|00000750| 20 74 68 65 20 73 71 75 | 61 72 65 20 72 6f 6f 74 | the squ|are root|
|00000760| 20 6f 66 20 24 63 2b 69 | 64 24 2e 20 46 69 72 73 | of $c+i|d$. Firs|
|00000770| 74 20 63 6f 6d 70 75 74 | 65 0a 25 20 5c 62 65 67 |t comput|e.% \beg|
|00000780| 69 6e 7b 73 75 62 6e 75 | 6d 63 61 73 65 73 7d 7b |in{subnu|mcases}{|
|00000790| 5c 6c 61 62 65 6c 7b 77 | 7d 20 77 5c 65 71 75 69 |\label{w|} w\equi|
|000007a0| 76 7d 0a 25 20 20 30 20 | 20 20 20 26 20 24 63 20 |v}.% 0 | & $c |
|000007b0| 3d 20 64 20 3d 20 30 24 | 5c 6c 61 62 65 6c 7b 77 |= d = 0$|\label{w|
|000007c0| 7a 65 72 6f 7d 5c 5c 0a | 25 20 5c 73 71 72 74 7b |zero}\\.|% \sqrt{|
|000007d0| 7c 63 7c 7d 5c 2c 5c 73 | 71 72 74 7b 5c 66 72 61 ||c|}\,\s|qrt{\fra|
|000007e0| 63 7b 31 20 2b 20 5c 73 | 71 72 74 7b 31 2b 28 64 |c{1 + \s|qrt{1+(d|
|000007f0| 2f 63 29 5e 32 7d 7d 7b | 32 7d 7d 20 20 20 26 20 |/c)^2}}{|2}} & |
|00000800| 24 7c 63 7c 20 5c 67 65 | 71 20 7c 64 7c 24 20 5c |$|c| \ge|q |d|$ \|
|00000810| 5c 0a 25 20 5c 73 71 72 | 74 7b 7c 64 7c 7d 5c 2c |\.% \sqr|t{|d|}\,|
|00000820| 5c 73 71 72 74 7b 5c 66 | 72 61 63 7b 7c 63 2f 64 |\sqrt{\f|rac{|c/d|
|00000830| 7c 20 2b 20 5c 73 71 72 | 74 7b 31 2b 28 63 2f 64 || + \sqr|t{1+(c/d|
|00000840| 29 5e 32 7d 7d 7b 32 7d | 7d 20 20 20 26 20 24 7c |)^2}}{2}|} & $||
|00000850| 63 7c 20 3c 20 7c 64 7c | 24 0a 25 20 5c 65 6e 64 |c| < |d||$.% \end|
|00000860| 7b 73 75 62 6e 75 6d 63 | 61 73 65 73 7d 0a 25 20 |{subnumc|ases}.% |
|00000870| 54 68 65 6e 2c 20 75 73 | 69 6e 67 20 24 77 24 20 |Then, us|ing $w$ |
|00000880| 66 72 6f 6d 20 65 71 2e | 7e 28 5c 72 65 66 7b 77 |from eq.|~(\ref{w|
|00000890| 7d 29 2c 20 74 68 65 20 | 73 71 75 61 72 65 20 72 |}), the |square r|
|000008a0| 6f 6f 74 20 69 73 0a 25 | 20 5c 62 65 67 69 6e 7b |oot is.%| \begin{|
|000008b0| 73 75 62 6e 75 6d 63 61 | 73 65 73 7d 7b 5c 73 71 |subnumca|ses}{\sq|
|000008c0| 72 74 7b 63 2b 69 64 7d | 3d 7d 0a 25 20 30 20 20 |rt{c+id}|=}.% 0 |
|000008d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008e0| 20 20 26 20 24 77 3d 30 | 24 20 28 63 61 73 65 20 | & $w=0|$ (case |
|000008f0| 5c 72 65 66 7b 77 7a 65 | 72 6f 7d 29 5c 5c 0a 25 |\ref{wze|ro})\\.%|
|00000900| 20 77 2b 69 5c 66 72 61 | 63 7b 64 7d 7b 32 77 7d | w+i\fra|c{d}{2w}|
|00000910| 20 20 20 20 20 20 26 20 | 24 77 20 5c 6e 65 71 20 | & |$w \neq |
|00000920| 30 24 2c 20 24 63 20 5c | 67 65 71 20 30 24 20 5c |0$, $c \|geq 0$ \|
|00000930| 5c 0a 25 20 5c 66 72 61 | 63 7b 7c 64 7c 7d 7b 32 |\.% \fra|c{|d|}{2|
|00000940| 77 7d 20 2b 20 69 77 20 | 20 26 20 24 77 20 5c 6e |w} + iw | & $w \n|
|00000950| 65 71 20 30 24 2c 20 24 | 63 20 3c 20 30 24 2c 20 |eq 0$, $|c < 0$, |
|00000960| 24 64 20 5c 67 65 71 20 | 30 24 20 5c 5c 0a 25 20 |$d \geq |0$ \\.% |
|00000970| 5c 66 72 61 63 7b 7c 64 | 7c 7d 7b 32 77 7d 20 2d |\frac{|d||}{2w} -|
|00000980| 20 69 77 20 20 26 20 24 | 77 20 5c 6e 65 71 20 30 | iw & $|w \neq 0|
|00000990| 24 2c 20 24 63 20 3c 20 | 30 24 2c 20 24 64 20 3c |$, $c < |0$, $d <|
|000009a0| 20 30 24 20 0a 25 20 5c | 65 6e 64 7b 73 75 62 6e | 0$ .% \|end{subn|
|000009b0| 75 6d 63 61 73 65 73 7d | 20 20 20 20 20 0a 25 0a |umcases}| .%.|
|000009c0| 25 20 20 51 75 65 73 74 | 69 6f 6e 3a 20 49 73 20 |% Quest|ion: Is |
|000009d0| 74 68 65 72 65 20 61 20 | 7b 6e 75 6d 63 61 73 65 |there a |{numcase|
|000009e0| 73 2a 7d 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |s*} envi|ronment |
|000009f0| 66 6f 72 20 75 6e 6e 75 | 6d 62 65 72 65 64 20 63 |for unnu|mbered c|
|00000a00| 61 73 65 73 3f 0a 25 20 | 20 41 6e 73 77 65 72 3a |ases?.% | Answer:|
|00000a10| 20 4e 6f 2e 20 4a 75 73 | 74 20 75 73 65 20 5c 6c | No. Jus|t use \l|
|00000a20| 65 66 74 5c 7b 20 5c 62 | 65 67 69 6e 7b 61 72 72 |eft\{ \b|egin{arr|
|00000a30| 61 79 7d 2e 2e 2e 5c 65 | 6e 64 7b 61 72 72 61 79 |ay}...\e|nd{array|
|00000a40| 7d 20 5c 72 69 67 68 74 | 2e 0a 25 0a 25 20 20 2d |} \right|..%.% -|
|00000a50| 20 2d 20 2d 20 20 62 65 | 67 69 6e 20 64 65 66 69 | - - be|gin defi|
|00000a60| 6e 69 74 69 6f 6e 73 20 | 2d 20 2d 20 2d 20 0a 0a |nitions |- - - ..|
|00000a70| 5c 50 72 6f 76 69 64 65 | 73 50 61 63 6b 61 67 65 |\Provide|sPackage|
|00000a80| 7b 63 61 73 65 73 7d 5b | 31 39 39 34 2f 30 36 2f |{cases}[|1994/06/|
|00000a90| 31 36 20 76 65 72 20 32 | 2e 20 5d 0a 0a 5c 6e 65 |16 ver 2|. ]..\ne|
|00000aa0| 77 65 6e 76 69 72 6f 6e | 6d 65 6e 74 7b 6e 75 6d |wenviron|ment{num|
|00000ab0| 63 61 73 65 73 7d 5b 31 | 5d 25 0a 7b 5c 64 69 73 |cases}[1|]%.{\dis|
|00000ac0| 70 6c 61 79 6d 61 74 68 | 0a 20 5c 6e 75 6d 63 40 |playmath|. \numc@|
|00000ad0| 6f 70 74 73 0a 20 5c 73 | 65 74 62 6f 78 5c 7a 40 |opts. \s|etbox\z@|
|00000ae0| 5c 68 62 6f 78 0a 20 20 | 7b 5c 61 64 76 61 6e 63 |\hbox. |{\advanc|
|00000af0| 65 5c 63 40 65 71 75 61 | 74 69 6f 6e 5c 40 6e 65 |e\c@equa|tion\@ne|
|00000b00| 5c 64 65 66 5c 40 63 75 | 72 72 65 6e 74 6c 61 62 |\def\@cu|rrentlab|
|00000b10| 65 6c 7b 5c 70 40 65 71 | 75 61 74 69 6f 6e 5c 74 |el{\p@eq|uation\t|
|00000b20| 68 65 65 71 75 61 74 69 | 6f 6e 7d 25 20 6c 6f 63 |heequati|on}% loc|
|00000b30| 61 6c 0a 20 20 24 5c 64 | 69 73 70 6c 61 79 73 74 |al. $\d|isplayst|
|00000b40| 79 6c 65 20 7b 23 31 5c | 6e 75 6c 6c 7d 5c 6d 40 |yle {#1\|null}\m@|
|00000b50| 74 68 5c 6d 73 6b 69 70 | 5c 6d 65 64 6d 75 73 6b |th\mskip|\medmusk|
|00000b60| 69 70 24 7d 25 0a 20 5c | 6e 75 6d 63 40 73 65 74 |ip$}%. \|numc@set|
|00000b70| 73 75 62 20 0a 20 5c 64 | 69 6d 65 6e 40 69 69 5c |sub . \d|imen@ii\|
|00000b80| 64 69 73 70 6c 61 79 77 | 69 64 74 68 0a 20 5c 73 |displayw|idth. \s|
|00000b90| 65 74 62 6f 78 5c 74 77 | 40 5c 76 62 6f 78 5c 62 |etbox\tw|@\vbox\b|
|00000ba0| 67 72 6f 75 70 0a 20 20 | 5c 73 74 65 70 63 6f 75 |group. |\stepcou|
|00000bb0| 6e 74 65 72 7b 65 71 75 | 61 74 69 6f 6e 7d 5c 64 |nter{equ|ation}\d|
|00000bc0| 65 66 5c 40 63 75 72 72 | 65 6e 74 6c 61 62 65 6c |ef\@curr|entlabel|
|00000bd0| 7b 5c 70 40 65 71 75 61 | 74 69 6f 6e 5c 74 68 65 |{\p@equa|tion\the|
|00000be0| 65 71 75 61 74 69 6f 6e | 7d 25 20 0a 20 20 5c 67 |equation|}% . \g|
|00000bf0| 6c 6f 62 61 6c 5c 40 65 | 71 6e 73 77 74 72 75 65 |lobal\@e|qnswtrue|
|00000c00| 5c 6d 40 74 68 0a 20 20 | 5c 65 76 65 72 79 63 72 |\m@th. |\everycr|
|00000c10| 7b 7d 5c 74 61 62 73 6b | 69 70 5c 6e 75 6d 63 40 |{}\tabsk|ip\numc@|
|00000c20| 6c 65 66 74 5c 6c 65 74 | 5c 5c 5c 40 65 71 6e 63 |left\let|\\\@eqnc|
|00000c30| 72 0a 20 20 5c 68 61 6c | 69 67 6e 20 74 6f 5c 64 |r. \hal|ign to\d|
|00000c40| 69 6d 65 6e 40 69 69 20 | 5c 62 67 72 6f 75 70 20 |imen@ii |\bgroup |
|00000c50| 5c 6b 65 72 6e 5c 77 64 | 5c 7a 40 20 5c 6b 65 72 |\kern\wd|\z@ \ker|
|00000c60| 6e 31 34 5c 70 40 20 25 | 20 61 73 73 75 6d 65 20 |n14\p@ %| assume |
|00000c70| 77 69 64 74 68 20 6f 66 | 20 62 72 61 63 65 0a 20 |width of| brace. |
|00000c80| 20 20 20 5c 67 6c 6f 62 | 61 6c 5c 40 65 71 63 6e | \glob|al\@eqcn|
|00000c90| 74 5c 40 6e 65 24 5c 64 | 69 73 70 6c 61 79 73 74 |t\@ne$\d|isplayst|
|00000ca0| 79 6c 65 5c 74 61 62 73 | 6b 69 70 5c 7a 40 73 6b |yle\tabs|kip\z@sk|
|00000cb0| 69 70 7b 23 23 7d 24 5c | 68 66 69 6c 20 0a 20 20 |ip{##}$\|hfil . |
|00000cc0| 20 26 5c 67 6c 6f 62 61 | 6c 5c 40 65 71 63 6e 74 | &\globa|l\@eqcnt|
|00000cd0| 5c 74 77 40 20 5c 73 6b | 69 70 40 31 30 5c 70 40 |\tw@ \sk|ip@10\p@|
|00000ce0| 20 5c 61 64 76 61 6e 63 | 65 5c 73 6b 69 70 40 5c | \advanc|e\skip@\|
|00000cf0| 74 77 40 5c 61 72 72 61 | 79 63 6f 6c 73 65 70 20 |tw@\arra|ycolsep |
|00000d00| 5c 68 73 6b 69 70 5c 73 | 6b 69 70 40 0a 20 20 20 |\hskip\s|kip@. |
|00000d10| 20 23 23 5c 75 6e 73 6b | 69 70 5c 68 66 69 6c 5c | ##\unsk|ip\hfil\|
|00000d20| 74 61 62 73 6b 69 70 5c | 40 63 65 6e 74 65 72 69 |tabskip\|@centeri|
|00000d30| 6e 67 20 0a 20 20 20 26 | 5c 67 6c 6f 62 61 6c 5c |ng . &|\global\|
|00000d40| 40 65 71 63 6e 74 5c 74 | 68 72 40 40 5c 68 62 6f |@eqcnt\t|hr@@\hbo|
|00000d50| 78 20 74 6f 5c 7a 40 5c | 62 67 72 6f 75 70 5c 68 |x to\z@\|bgroup\h|
|00000d60| 73 73 23 23 5c 65 67 72 | 6f 75 70 5c 74 61 62 73 |ss##\egr|oup\tabs|
|00000d70| 6b 69 70 5c 7a 40 73 6b | 69 70 5c 63 72 0a 7d 25 |kip\z@sk|ip\cr.}%|
|00000d80| 20 20 28 54 68 65 20 5c | 75 6e 73 6b 69 70 20 72 | (The \|unskip r|
|00000d90| 65 6d 6f 76 65 73 20 73 | 70 61 63 65 20 77 68 65 |emoves s|pace whe|
|00000da0| 6e 20 74 68 65 72 65 20 | 61 72 65 20 6e 6f 20 65 |n there |are no e|
|00000db0| 78 70 6c 61 6e 61 74 69 | 6f 6e 73 2e 29 0a 7b 5c |xplanati|ons.).{\|
|00000dc0| 40 40 65 71 6e 63 72 0a | 20 5c 65 67 72 6f 75 70 |@@eqncr.| \egroup|
|00000dd0| 20 25 20 65 6e 64 20 5c | 68 61 6c 69 67 6e 2c 20 | % end \|halign, |
|00000de0| 77 68 69 63 68 20 64 6f | 65 73 20 6e 6f 74 20 63 |which do|es not c|
|00000df0| 6f 6e 74 61 69 6e 20 66 | 69 72 73 74 20 63 6f 6c |ontain f|irst col|
|00000e00| 75 6d 6e 20 6f 72 20 62 | 72 61 63 65 0a 20 5c 67 |umn or b|race. \g|
|00000e10| 6c 6f 62 61 6c 5c 61 64 | 76 61 6e 63 65 5c 63 40 |lobal\ad|vance\c@|
|00000e20| 65 71 75 61 74 69 6f 6e | 5c 6d 40 6e 65 20 0a 20 |equation|\m@ne . |
|00000e30| 5c 75 6e 73 6b 69 70 5c | 75 6e 70 65 6e 61 6c 74 |\unskip\|unpenalt|
|00000e40| 79 5c 75 6e 73 6b 69 70 | 5c 75 6e 70 65 6e 61 6c |y\unskip|\unpenal|
|00000e50| 74 79 0a 20 5c 73 65 74 | 62 6f 78 5c 7a 40 5c 6c |ty. \set|box\z@\l|
|00000e60| 61 73 74 62 6f 78 20 5c | 6e 6f 69 6e 74 65 72 6c |astbox \|nointerl|
|00000e70| 69 6e 65 73 6b 69 70 20 | 5c 63 6f 70 79 5c 7a 40 |ineskip |\copy\z@|
|00000e80| 20 25 20 67 72 61 62 20 | 6c 61 73 74 20 6c 69 6e | % grab |last lin|
|00000e90| 65 2c 20 74 68 65 6e 20 | 70 75 74 20 69 74 20 62 |e, then |put it b|
|00000ea0| 61 63 6b 0a 20 5c 67 40 | 74 62 6f 78 65 64 77 69 |ack. \g@|tboxedwi|
|00000eb0| 64 74 68 5c 7a 40 20 25 | 20 62 6f 78 20 5c 7a 40 |dth\z@ %| box \z@|
|00000ec0| 20 64 65 73 74 72 6f 79 | 65 64 2c 20 77 69 64 74 | destroy|ed, widt|
|00000ed0| 68 20 6f 66 20 63 6f 6c | 75 6d 6e 73 20 2d 3e 20 |h of col|umns -> |
|00000ee0| 5c 64 69 6d 65 6e 40 69 | 0a 5c 65 67 72 6f 75 70 |\dimen@i|.\egroup|
|00000ef0| 25 20 65 6e 64 20 5c 76 | 62 6f 78 20 28 5c 62 6f |% end \v|box (\bo|
|00000f00| 78 5c 74 77 40 29 0a 5c | 68 62 6f 78 20 74 6f 5c |x\tw@).\|hbox to\|
|00000f10| 64 69 73 70 6c 61 79 77 | 69 64 74 68 7b 5c 6d 40 |displayw|idth{\m@|
|00000f20| 74 68 20 25 20 61 73 73 | 65 6d 62 6c 65 20 74 68 |th % ass|emble th|
|00000f30| 65 20 77 68 6f 6c 65 20 | 65 71 75 61 74 69 6f 6e |e whole |equation|
|00000f40| 0a 20 5c 68 73 6b 69 70 | 5c 6e 75 6d 63 40 6c 65 |. \hskip|\numc@le|
|00000f50| 66 74 20 5c 68 62 6f 78 | 20 74 6f 5c 64 69 6d 65 |ft \hbox| to\dime|
|00000f60| 6e 40 69 7b 24 5c 64 69 | 73 70 6c 61 79 73 74 79 |n@i{$\di|splaysty|
|00000f70| 6c 65 20 5c 62 6f 78 5c | 7a 40 20 25 20 70 61 72 |le \box\|z@ % par|
|00000f80| 61 6d 65 74 65 72 20 23 | 31 0a 20 20 5c 64 69 6d |ameter #|1. \dim|
|00000f90| 65 6e 40 5c 68 74 5c 74 | 77 40 20 5c 61 64 76 61 |en@\ht\t|w@ \adva|
|00000fa0| 6e 63 65 5c 64 69 6d 65 | 6e 40 5c 64 70 5c 74 77 |nce\dime|n@\dp\tw|
|00000fb0| 40 20 25 20 67 65 74 20 | 73 69 7a 65 20 6f 66 20 |@ % get |size of |
|00000fc0| 62 72 61 63 65 0a 20 20 | 5c 6c 65 66 74 5c 7b 5c |brace. |\left\{\|
|00000fd0| 76 63 65 6e 74 65 72 20 | 74 6f 5c 64 69 6d 65 6e |vcenter |to\dimen|
|00000fe0| 40 7b 5c 76 66 69 6c 7d | 5c 72 69 67 68 74 2e 5c |@{\vfil}|\right.\|
|00000ff0| 6e 40 73 70 61 63 65 20 | 25 20 6d 61 6b 65 20 62 |n@space |% make b|
|00001000| 72 61 63 65 0a 20 20 24 | 5c 68 66 69 6c 7d 5c 68 |race. $|\hfil}\h|
|00001010| 73 6b 69 70 5c 40 63 65 | 6e 74 65 72 69 6e 67 20 |skip\@ce|ntering |
|00001020| 25 20 66 69 6e 69 73 68 | 65 64 20 66 69 72 73 74 |% finish|ed first|
|00001030| 20 70 61 72 74 20 28 66 | 69 6c 6c 65 64 20 77 68 | part (f|illed wh|
|00001040| 6f 6c 65 20 6c 69 6e 65 | 29 0a 20 5c 6b 65 72 6e |ole line|). \kern|
|00001050| 2d 5c 64 69 73 70 6c 61 | 79 77 69 64 74 68 20 24 |-\displa|ywidth $|
|00001060| 5c 76 63 65 6e 74 65 72 | 7b 5c 62 6f 78 5c 74 77 |\vcenter|{\box\tw|
|00001070| 40 7d 24 25 20 6f 76 65 | 72 6c 61 79 20 74 68 65 |@}$% ove|rlay the|
|00001080| 20 61 6c 69 67 6e 6d 65 | 6e 74 0a 7d 25 20 65 6e | alignme|nt.}% en|
|00001090| 64 20 74 68 65 20 5c 68 | 62 6f 78 0a 5c 6e 75 6d |d the \h|box.\num|
|000010a0| 63 40 72 65 73 65 74 73 | 75 62 0a 5c 65 6e 64 64 |c@resets|ub.\endd|
|000010b0| 69 73 70 6c 61 79 6d 61 | 74 68 5c 67 6c 6f 62 61 |isplayma|th\globa|
|000010c0| 6c 5c 40 69 67 6e 6f 72 | 65 74 72 75 65 7d 0a 0a |l\@ignor|etrue}..|
|000010d0| 25 20 47 65 74 20 77 69 | 64 74 68 20 6f 66 20 61 |% Get wi|dth of a|
|000010e0| 6c 6c 20 62 6f 78 65 73 | 20 6f 6e 20 61 20 6c 69 |ll boxes| on a li|
|000010f0| 6e 65 2c 20 69 67 6e 6f | 72 69 6e 67 20 74 68 65 |ne, igno|ring the|
|00001100| 20 67 6c 75 65 20 62 65 | 74 77 65 65 6e 20 74 68 | glue be|tween th|
|00001110| 65 6d 2e 0a 25 20 52 65 | 74 75 72 6e 20 74 6f 74 |em..% Re|turn tot|
|00001120| 61 6c 20 77 69 64 74 68 | 20 69 6e 20 5c 64 69 6d |al width| in \dim|
|00001130| 65 6e 40 69 20 28 67 6c | 6f 62 61 6c 29 2e 0a 5c |en@i (gl|obal)..\|
|00001140| 64 65 66 5c 67 40 74 62 | 6f 78 65 64 77 69 64 74 |def\g@tb|oxedwidt|
|00001150| 68 23 31 7b 5c 73 65 74 | 62 6f 78 23 31 5c 68 62 |h#1{\set|box#1\hb|
|00001160| 6f 78 7b 5c 75 6e 68 62 | 6f 78 23 31 5c 67 6c 6f |ox{\unhb|ox#1\glo|
|00001170| 62 61 6c 5c 64 69 6d 65 | 6e 40 69 5c 7a 40 20 0a |bal\dime|n@i\z@ .|
|00001180| 20 20 5c 47 40 74 42 6f | 78 65 64 57 69 64 74 68 | \G@tBo|xedWidth|
|00001190| 7d 7d 0a 5c 64 65 66 5c | 47 40 74 42 6f 78 65 64 |}}.\def\|G@tBoxed|
|000011a0| 57 69 64 74 68 7b 5c 75 | 6e 73 6b 69 70 5c 75 6e |Width{\u|nskip\un|
|000011b0| 73 6b 69 70 5c 75 6e 73 | 6b 69 70 20 5c 73 65 74 |skip\uns|kip \set|
|000011c0| 62 6f 78 5c 7a 40 5c 6c | 61 73 74 62 6f 78 20 0a |box\z@\l|astbox .|
|000011d0| 20 5c 69 66 76 6f 69 64 | 5c 7a 40 5c 65 6c 73 65 | \ifvoid|\z@\else|
|000011e0| 20 5c 67 6c 6f 62 61 6c | 5c 61 64 76 61 6e 63 65 | \global|\advance|
|000011f0| 5c 64 69 6d 65 6e 40 69 | 5c 77 64 5c 7a 40 20 5c |\dimen@i|\wd\z@ \|
|00001200| 65 78 70 61 6e 64 61 66 | 74 65 72 5c 47 40 74 42 |expandaf|ter\G@tB|
|00001210| 6f 78 65 64 57 69 64 74 | 68 20 5c 66 69 7d 0a 0a |oxedWidt|h \fi}..|
|00001220| 5c 6c 65 74 5c 6e 75 6d | 63 40 73 65 74 73 75 62 |\let\num|c@setsub|
|00001230| 5c 72 65 6c 61 78 0a 5c | 6c 65 74 5c 6e 75 6d 63 |\relax.\|let\numc|
|00001240| 40 72 65 73 65 74 73 75 | 62 5c 72 65 6c 61 78 0a |@resetsu|b\relax.|
|00001250| 0a 5c 64 65 66 5c 73 75 | 62 6e 75 6d 63 61 73 65 |.\def\su|bnumcase|
|00001260| 73 7b 5c 6c 65 74 5c 6e | 75 6d 63 40 73 65 74 73 |s{\let\n|umc@sets|
|00001270| 75 62 5c 73 75 62 65 71 | 75 61 74 69 6f 6e 73 20 |ub\subeq|uations |
|00001280| 0a 20 20 20 5c 6c 65 74 | 5c 6e 75 6d 63 40 72 65 |. \let|\numc@re|
|00001290| 73 65 74 73 75 62 5c 65 | 6e 64 73 75 62 65 71 75 |setsub\e|ndsubequ|
|000012a0| 61 74 69 6f 6e 73 20 20 | 5c 6e 75 6d 63 61 73 65 |ations |\numcase|
|000012b0| 73 7d 0a 5c 6c 65 74 5c | 65 6e 64 73 75 62 6e 75 |s}.\let\|endsubnu|
|000012c0| 6d 63 61 73 65 73 5c 65 | 6e 64 6e 75 6d 63 61 73 |mcases\e|ndnumcas|
|000012d0| 65 73 20 0a 0a 25 20 54 | 68 65 73 65 20 76 65 72 |es ..% T|hese ver|
|000012e0| 73 69 6f 6e 73 20 6f 66 | 20 73 75 62 65 71 75 61 |sions of| subequa|
|000012f0| 74 69 6f 6e 73 20 66 6f | 6c 6c 6f 77 20 74 68 65 |tions fo|llow the|
|00001300| 20 73 74 79 6c 65 20 6f | 66 20 47 69 6c 64 65 61 | style o|f Gildea|
|00001310| 27 73 20 73 75 62 65 71 | 6e 2e 73 74 79 2c 0a 25 |'s subeq|n.sty,.%|
|00001320| 20 62 75 74 20 61 72 65 | 20 74 68 6f 72 6f 75 67 | but are| thoroug|
|00001330| 68 6c 79 20 72 65 77 72 | 69 74 74 65 6e 2e 20 20 |hly rewr|itten. |
|00001340| 0a 0a 25 20 59 6f 75 20 | 63 61 6e 20 63 68 61 6e |..% You |can chan|
|00001350| 67 65 20 74 68 65 20 6c | 61 62 65 6c 6c 69 6e 67 |ge the l|abelling|
|00001360| 20 62 79 20 72 65 64 65 | 66 69 6e 69 6e 67 20 5c | by rede|fining \|
|00001370| 74 68 65 73 75 62 65 71 | 75 61 74 69 6f 6e 2c 20 |thesubeq|uation, |
|00001380| 62 75 74 20 74 68 65 20 | 6e 61 6d 65 73 0a 25 20 |but the |names.% |
|00001390| 6f 66 20 74 68 65 20 63 | 6f 75 6e 74 65 72 73 20 |of the c|ounters |
|000013a0| 6d 61 79 20 62 65 20 63 | 6f 6e 66 75 73 69 6e 67 |may be c|onfusing|
|000013b0| 3a 20 54 68 65 20 73 75 | 62 2d 6e 75 6d 62 65 72 |: The su|b-number|
|000013c0| 20 69 73 20 67 69 76 65 | 6e 20 62 79 20 63 6f 75 | is give|n by cou|
|000013d0| 6e 74 65 72 0a 25 20 7b | 65 71 75 61 74 69 6f 6e |nter.% {|equation|
|000013e0| 7d 2c 20 77 68 69 6c 65 | 20 74 68 65 20 6f 76 65 |}, while| the ove|
|000013f0| 72 61 6c 6c 20 65 71 75 | 61 74 69 6f 6e 20 6e 75 |rall equ|ation nu|
|00001400| 6d 62 65 72 20 69 73 20 | 67 69 76 65 6e 20 62 79 |mber is |given by|
|00001410| 20 7b 6d 61 69 6e 65 71 | 75 61 74 69 6f 6e 7d 2e | {maineq|uation}.|
|00001420| 0a 25 20 54 68 65 72 65 | 20 61 72 65 20 74 77 6f |.% There| are two|
|00001430| 20 77 61 79 73 20 74 6f | 20 72 65 66 65 72 65 6e | ways to| referen|
|00001440| 63 65 20 74 68 65 20 6f | 76 65 72 61 6c 6c 20 65 |ce the o|verall e|
|00001450| 71 75 61 74 69 6f 6e 20 | 6e 75 6d 62 65 72 3a 0a |quation |number:.|
|00001460| 25 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 76 61 |% throug|h the va|
|00001470| 6c 75 65 20 6f 66 20 5c | 63 40 6d 61 69 6e 65 71 |lue of \|c@maineq|
|00001480| 75 61 74 69 6f 6e 2c 20 | 61 73 20 69 6e 20 5c 52 |uation, |as in \R|
|00001490| 6f 6d 61 6e 7b 6d 61 69 | 6e 65 71 75 61 74 69 6f |oman{mai|nequatio|
|000014a0| 6e 7d 2c 20 6f 72 0a 25 | 20 74 68 72 6f 75 67 68 |n}, or.%| through|
|000014b0| 20 5c 74 68 65 6d 61 69 | 6e 65 71 75 61 74 69 6f | \themai|nequatio|
|000014c0| 6e 2c 20 77 68 69 63 68 | 20 67 69 76 65 73 20 74 |n, which| gives t|
|000014d0| 68 65 20 74 65 78 74 20 | 6f 66 20 74 68 65 20 6e |he text |of the n|
|000014e0| 6f 72 6d 61 6c 20 5c 74 | 68 65 65 71 75 61 74 69 |ormal \t|heequati|
|000014f0| 6f 6e 2e 0a 25 20 52 65 | 66 65 72 20 74 6f 20 74 |on..% Re|fer to t|
|00001500| 68 65 20 6c 6f 63 61 6c | 20 73 75 62 2d 6e 75 6d |he local| sub-num|
|00001510| 62 65 72 20 77 69 74 68 | 20 5c 63 40 65 71 75 61 |ber with| \c@equa|
|00001520| 74 69 6f 6e 2c 20 61 73 | 20 69 6e 20 5c 61 6c 70 |tion, as| in \alp|
|00001530| 68 7b 65 71 75 61 74 69 | 6f 6e 7d 2e 0a 25 20 54 |h{equati|on}..% T|
|00001540| 68 65 20 64 65 66 61 75 | 6c 74 20 6e 75 6d 62 65 |he defau|lt numbe|
|00001550| 72 69 6e 67 20 69 73 20 | 6c 69 6b 65 20 31 33 63 |ring is |like 13c|
|00001560| 2c 20 67 69 76 65 6e 20 | 62 79 3a 0a 0a 5c 64 65 |, given |by:..\de|
|00001570| 66 5c 74 68 65 73 75 62 | 65 71 75 61 74 69 6f 6e |f\thesub|equation|
|00001580| 7b 5c 74 68 65 6d 61 69 | 6e 65 71 75 61 74 69 6f |{\themai|nequatio|
|00001590| 6e 5c 61 6c 70 68 7b 65 | 71 75 61 74 69 6f 6e 7d |n\alph{e|quation}|
|000015a0| 7d 0a 0a 25 20 53 6f 6d | 65 20 61 6c 74 65 72 6e |}..% Som|e altern|
|000015b0| 61 74 69 76 65 73 3a 0a | 25 20 20 20 5c 64 65 66 |atives:.|% \def|
|000015c0| 5c 74 68 65 73 75 62 65 | 71 75 61 74 69 6f 6e 7b |\thesube|quation{|
|000015d0| 5c 74 68 65 6d 61 69 6e | 65 71 75 61 74 69 6f 6e |\themain|equation|
|000015e0| 2e 5c 41 6c 70 68 7b 65 | 71 75 61 74 69 6f 6e 7d |.\Alph{e|quation}|
|000015f0| 7d 20 20 25 20 20 31 33 | 2e 43 0a 25 20 20 20 5c |} % 13|.C.% \|
|00001600| 64 65 66 5c 74 68 65 73 | 75 62 65 71 75 61 74 69 |def\thes|ubequati|
|00001610| 6f 6e 7b 5c 74 68 65 6d | 61 69 6e 65 71 75 61 74 |on{\them|ainequat|
|00001620| 69 6f 6e 2d 5c 72 6f 6d | 61 6e 7b 65 71 75 61 74 |ion-\rom|an{equat|
|00001630| 69 6f 6e 7d 7d 20 20 25 | 20 20 31 33 2d 69 69 69 |ion}} %| 13-iii|
|00001640| 0a 25 20 20 20 5c 64 65 | 66 5c 74 68 65 73 75 62 |.% \de|f\thesub|
|00001650| 65 71 75 61 74 69 6f 6e | 7b 28 5c 61 72 61 62 69 |equation|{(\arabi|
|00001660| 63 7b 6d 61 69 6e 65 71 | 75 61 74 69 6f 6e 7d 5c |c{maineq|uation}\|
|00001670| 61 6c 70 68 7b 65 71 75 | 61 74 69 6f 6e 7d 29 7d |alph{equ|ation})}|
|00001680| 20 25 20 28 31 33 63 29 | 0a 25 20 54 68 65 20 74 | % (13c)|.% The t|
|00001690| 68 69 72 64 20 61 6c 74 | 65 72 6e 61 74 69 76 65 |hird alt|ernative|
|000016a0| 20 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 | should |be used |
|000016b0| 69 66 20 61 20 64 6f 63 | 75 6d 65 6e 74 20 73 74 |if a doc|ument st|
|000016c0| 79 6c 65 20 68 61 73 0a | 25 20 64 65 63 6c 61 72 |yle has.|% declar|
|000016d0| 65 64 20 20 5c 72 65 6e | 65 77 63 6f 6d 6d 61 6e |ed \ren|ewcomman|
|000016e0| 64 7b 5c 40 65 71 6e 6e | 75 6d 7d 7b 5c 74 68 65 |d{\@eqnn|um}{\the|
|000016f0| 65 71 75 61 74 69 6f 6e | 7d 20 61 6e 64 0a 25 20 |equation|} and.% |
|00001700| 5c 72 65 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 74 |\renewco|mmand{\t|
|00001710| 68 65 65 71 75 61 74 69 | 6f 6e 7d 7b 28 5c 61 72 |heequati|on}{(\ar|
|00001720| 61 62 69 63 7b 65 71 75 | 61 74 69 6f 6e 7d 29 7d |abic{equ|ation})}|
|00001730| 2c 20 77 68 69 63 68 20 | 6d 61 6b 65 73 0a 25 20 |, which |makes.% |
|00001740| 5c 72 65 66 20 70 75 74 | 20 70 61 72 65 6e 74 68 |\ref put| parenth|
|00001750| 65 73 65 73 20 61 72 6f | 75 6e 64 20 72 65 67 75 |eses aro|und regu|
|00001760| 6c 61 72 20 65 71 75 61 | 74 69 6f 6e 20 6e 75 6d |lar equa|tion num|
|00001770| 62 65 72 73 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |bers aut|omatical|
|00001780| 6c 79 2e 0a 0a 5c 64 65 | 66 5c 73 75 62 65 71 75 |ly...\de|f\subequ|
|00001790| 61 74 69 6f 6e 73 7b 5c | 72 65 66 73 74 65 70 63 |ations{\|refstepc|
|000017a0| 6f 75 6e 74 65 72 7b 65 | 71 75 61 74 69 6f 6e 7d |ounter{e|quation}|
|000017b0| 25 0a 20 20 5c 6d 61 74 | 68 63 68 61 72 64 65 66 |%. \mat|hchardef|
|000017c0| 5c 63 40 6d 61 69 6e 65 | 71 75 61 74 69 6f 6e 5c |\c@maine|quation\|
|000017d0| 63 40 65 71 75 61 74 69 | 6f 6e 0a 20 20 5c 6c 65 |c@equati|on. \le|
|000017e0| 74 5c 40 74 65 6d 70 61 | 5c 70 72 6f 74 65 63 74 |t\@tempa|\protect|
|000017f0| 20 25 20 2a 20 61 64 64 | 65 64 20 70 72 6f 74 65 | % * add|ed prote|
|00001800| 63 74 69 6f 6e 0a 20 20 | 5c 64 65 66 5c 70 72 6f |ction. |\def\pro|
|00001810| 74 65 63 74 7b 5c 6e 6f | 65 78 70 61 6e 64 5c 70 |tect{\no|expand\p|
|00001820| 72 6f 74 65 63 74 5c 6e | 6f 65 78 70 61 6e 64 7d |rotect\n|oexpand}|
|00001830| 25 20 2a 0a 20 20 5c 65 | 64 65 66 5c 74 68 65 6d |% *. \e|def\them|
|00001840| 61 69 6e 65 71 75 61 74 | 69 6f 6e 7b 5c 74 68 65 |ainequat|ion{\the|
|00001850| 65 71 75 61 74 69 6f 6e | 7d 5c 6c 65 74 5c 74 68 |equation|}\let\th|
|00001860| 65 65 71 75 61 74 69 6f | 6e 5c 74 68 65 73 75 62 |eequatio|n\thesub|
|00001870| 65 71 75 61 74 69 6f 6e | 0a 20 20 5c 6c 65 74 5c |equation|. \let\|
|00001880| 70 72 6f 74 65 63 74 5c | 40 74 65 6d 70 61 20 25 |protect\|@tempa %|
|00001890| 20 2a 0a 20 20 5c 67 6c | 6f 62 61 6c 5c 63 40 65 | *. \gl|obal\c@e|
|000018a0| 71 75 61 74 69 6f 6e 5c | 7a 40 7d 0a 0a 5c 64 65 |quation\|z@}..\de|
|000018b0| 66 5c 65 6e 64 73 75 62 | 65 71 75 61 74 69 6f 6e |f\endsub|equation|
|000018c0| 73 7b 25 0a 20 20 5c 67 | 6c 6f 62 61 6c 5c 63 40 |s{%. \g|lobal\c@|
|000018d0| 65 71 75 61 74 69 6f 6e | 5c 63 40 6d 61 69 6e 65 |equation|\c@maine|
|000018e0| 71 75 61 74 69 6f 6e 0a | 20 20 5c 67 6c 6f 62 61 |quation.| \globa|
|000018f0| 6c 5c 40 69 67 6e 6f 72 | 65 74 72 75 65 7d 0a 0a |l\@ignor|etrue}..|
|00001900| 25 20 5c 62 65 67 69 6e | 7b 73 75 62 65 71 6e 61 |% \begin|{subeqna|
|00001910| 72 72 61 79 7d 20 20 77 | 6f 72 6b 73 20 6c 69 6b |rray} w|orks lik|
|00001920| 65 20 20 5c 62 65 67 69 | 6e 7b 73 75 62 65 71 75 |e \begi|n{subequ|
|00001930| 61 74 69 6f 6e 73 7d 5c | 62 65 67 69 6e 7b 65 71 |ations}\|begin{eq|
|00001940| 6e 61 72 72 61 79 7d 2c | 0a 25 20 77 69 74 68 20 |narray},|.% with |
|00001950| 74 68 65 20 61 64 64 65 | 64 20 66 65 61 74 75 72 |the adde|d featur|
|00001960| 65 20 74 68 61 74 20 61 | 20 5c 6c 61 62 65 6c 20 |e that a| \label |
|00001970| 63 6f 6d 6d 61 6e 64 20 | 67 69 76 65 6e 20 67 69 |command |given gi|
|00001980| 76 65 6e 20 61 74 20 74 | 68 65 20 76 65 72 79 0a |ven at t|he very.|
|00001990| 25 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |% beginn|ing of t|
|000019a0| 68 65 20 66 69 72 73 74 | 20 65 6e 74 72 79 20 64 |he first| entry d|
|000019b0| 65 66 69 6e 65 73 20 61 | 20 6c 61 62 65 6c 20 66 |efines a| label f|
|000019c0| 6f 72 20 74 68 65 20 6f | 76 65 72 61 6c 6c 20 65 |or the o|verall e|
|000019d0| 71 75 61 74 69 6f 6e 20 | 0a 25 20 6e 75 6d 62 65 |quation |.% numbe|
|000019e0| 72 2e 0a 0a 5c 64 65 66 | 5c 73 75 62 65 71 6e 61 |r...\def|\subeqna|
|000019f0| 72 72 61 79 7b 5c 73 75 | 62 65 71 75 61 74 69 6f |rray{\su|bequatio|
|00001a00| 6e 73 5c 65 71 6e 61 72 | 72 61 79 5c 40 69 66 6e |ns\eqnar|ray\@ifn|
|00001a10| 65 78 74 63 68 61 72 5c | 6c 61 62 65 6c 7b 5c 40 |extchar\|label{\@|
|00001a20| 6c 61 62 40 73 75 62 65 | 71 6e 61 72 72 61 79 7d |lab@sube|qnarray}|
|00001a30| 7b 7d 7d 0a 5c 64 65 66 | 5c 65 6e 64 73 75 62 65 |{}}.\def|\endsube|
|00001a40| 71 6e 61 72 72 61 79 7b | 5c 65 6e 64 65 71 6e 61 |qnarray{|\endeqna|
|00001a50| 72 72 61 79 5c 65 6e 64 | 73 75 62 65 71 75 61 74 |rray\end|subequat|
|00001a60| 69 6f 6e 73 7d 0a 5c 64 | 65 66 5c 40 6c 61 62 40 |ions}.\d|ef\@lab@|
|00001a70| 73 75 62 65 71 6e 61 72 | 72 61 79 23 31 23 32 7b |subeqnar|ray#1#2{|
|00001a80| 5c 62 65 67 69 6e 67 72 | 6f 75 70 20 0a 20 20 5c |\begingr|oup . \|
|00001a90| 6c 65 74 5c 40 63 75 72 | 72 65 6e 74 6c 61 62 65 |let\@cur|rentlabe|
|00001aa0| 6c 5c 74 68 65 6d 61 69 | 6e 65 71 75 61 74 69 6f |l\themai|nequatio|
|00001ab0| 6e 20 23 31 7b 23 32 7d | 5c 65 6e 64 67 72 6f 75 |n #1{#2}|\endgrou|
|00001ac0| 70 7d 0a 0a 5c 64 65 66 | 5c 6e 75 6d 63 40 6c 65 |p}..\def|\numc@le|
|00001ad0| 66 74 7b 5c 40 63 65 6e | 74 65 72 69 6e 67 7d 0a |ft{\@cen|tering}.|
|00001ae0| 5c 6c 65 74 5c 6e 75 6d | 63 40 6f 70 74 73 5c 72 |\let\num|c@opts\r|
|00001af0| 65 6c 61 78 0a 0a 5c 44 | 65 63 6c 61 72 65 4f 70 |elax..\D|eclareOp|
|00001b00| 74 69 6f 6e 7b 66 6c 65 | 71 6e 7d 7b 0a 20 20 5c |tion{fle|qn}{. \|
|00001b10| 64 65 66 5c 6e 75 6d 63 | 40 6c 65 66 74 7b 5c 7a |def\numc|@left{\z|
|00001b20| 40 73 6b 69 70 7d 0a 20 | 20 5c 64 65 66 5c 6e 75 |@skip}. | \def\nu|
|00001b30| 6d 63 40 6f 70 74 73 7b | 5c 64 69 73 70 6c 61 79 |mc@opts{|\display|
|00001b40| 77 69 64 74 68 5c 6c 69 | 6e 65 77 69 64 74 68 20 |width\li|newidth |
|00001b50| 5c 61 64 76 61 6e 63 65 | 5c 64 69 73 70 6c 61 79 |\advance|\display|
|00001b60| 77 69 64 74 68 2d 5c 6d | 61 74 68 69 6e 64 65 6e |width-\m|athinden|
|00001b70| 74 7d 20 7d 0a 5c 44 65 | 63 6c 61 72 65 4f 70 74 |t} }.\De|clareOpt|
|00001b80| 69 6f 6e 7b 73 75 62 6e | 75 6d 7d 7b 0a 20 20 5c |ion{subn|um}{. \|
|00001b90| 6c 65 74 5c 6e 75 6d 63 | 40 73 65 74 73 75 62 5c |let\numc|@setsub\|
|00001ba0| 73 75 62 65 71 75 61 74 | 69 6f 6e 73 20 0a 20 20 |subequat|ions . |
|00001bb0| 5c 6c 65 74 5c 6e 75 6d | 63 40 72 65 73 65 74 73 |\let\num|c@resets|
|00001bc0| 75 62 5c 65 6e 64 73 75 | 62 65 71 75 61 74 69 6f |ub\endsu|bequatio|
|00001bd0| 6e 73 20 20 7d 0a 5c 50 | 72 6f 63 65 73 73 4f 70 |ns }.\P|rocessOp|
|00001be0| 74 69 6f 6e 73 20 0a 0a | 25 20 53 65 6e 64 20 70 |tions ..|% Send p|
|00001bf0| 72 6f 62 6c 65 6d 20 72 | 65 70 6f 72 74 73 20 74 |roblem r|eports t|
|00001c00| 6f 20 61 73 6e 64 40 52 | 65 67 2e 54 52 49 55 4d |o asnd@R|eg.TRIUM|
|00001c10| 46 2e 43 41 0a 25 0a 25 | 20 74 65 73 74 20 69 6e |F.CA.%.%| test in|
|00001c20| 74 65 67 72 69 74 79 3a | 0a 25 20 62 72 61 63 6b |tegrity:|.% brack|
|00001c30| 65 74 73 3a 20 20 72 6f | 75 6e 64 2c 20 73 71 75 |ets: ro|und, squ|
|00001c40| 61 72 65 2c 20 63 75 72 | 6c 79 2c 20 61 6e 67 6c |are, cur|ly, angl|
|00001c50| 65 3a 20 20 20 28 29 20 | 5b 5d 20 7b 7d 20 3c 3e |e: () |[] {} <>|
|00001c60| 0a 25 20 62 61 63 6b 73 | 6c 61 73 68 2c 20 73 6c |.% backs|lash, sl|
|00001c70| 61 73 68 2c 20 76 65 72 | 74 69 63 61 6c 2c 20 61 |ash, ver|tical, a|
|00001c80| 74 2c 20 64 6f 6c 6c 61 | 72 2c 20 61 6e 64 3a 20 |t, dolla|r, and: |
|00001c90| 5c 20 2f 20 7c 20 40 20 | 24 20 26 0a 25 20 68 61 |\ / | @ |$ &.% ha|
|00001ca0| 74 2c 20 67 72 61 76 65 | 2c 20 61 63 75 74 65 20 |t, grave|, acute |
|00001cb0| 28 61 70 6f 73 74 72 6f | 70 68 65 29 2c 20 71 75 |(apostro|phe), qu|
|00001cc0| 6f 74 65 2c 20 74 69 6c | 64 65 2c 20 75 6e 64 65 |ote, til|de, unde|
|00001cd0| 72 3a 20 20 20 5e 20 60 | 20 27 20 22 20 7e 20 5f |r: ^ `| ' " ~ _|
|00001ce0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+